/**
 * Description:一些注释<br/>
 * CreateTime:2019-03-25<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
package cn.cnsy123.bookwebsiteserver.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * Description:一些注释<br/>
 * CreateTime:2019-03-25<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
@Entity
@Table(name = "BOOK_LIBRARY_INFO")
public class SysBookLibraryInfo {
    
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "LIBRARY_ID")
    private Long libraryId;
    
    @Column(name = "LIBRARY_NAME",length = 20)
    private String libraryName;
    
    @Column(name = "MANAGER_ID",length = 11)
    private Long managerId;
    
    @Column(name = "LIBRARY_TELPHONE",length = 20)
    private String libraryTelPhone;
    
    @Column(name = "LIBRARY_ADDRESS",length = 200)
    private String libraryAddress;
    
    @Column(name = "LIBRARY_EMAIL")
    private String libraryEmail;
    
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Column(name = "LIBRARY_FOUNDING_TIME")
    @Temporal(TemporalType.DATE)
    private Date libraryFoundingTime;
    
    @Column(name = "LIBRARY_SYNOPSIS",length = 500)
    private String librarySynopsis;

    public Long getLibraryId() {
        return libraryId;
    }

    public void setLibraryId(Long libraryId) {
        this.libraryId = libraryId;
    }

    public String getLibraryName() {
        return libraryName;
    }

    public void setLibraryName(String libraryName) {
        this.libraryName = libraryName;
    }

    public Long getManagerId() {
        return managerId;
    }

    public void setManagerId(Long managerId) {
        this.managerId = managerId;
    }

    public String getLibraryTelPhone() {
        return libraryTelPhone;
    }

    public void setLibraryTelPhone(String libraryTelPhone) {
        this.libraryTelPhone = libraryTelPhone;
    }

    public String getLibraryAddress() {
        return libraryAddress;
    }

    public void setLibraryAddress(String libraryAddress) {
        this.libraryAddress = libraryAddress;
    }

    public Date getLibraryFoundingTime() {
        return libraryFoundingTime;
    }

    public void setLibraryFoundingTime(Date libraryFoundingTime) {
        this.libraryFoundingTime = libraryFoundingTime;
    }

    public String getLibrarySynopsis() {
        return librarySynopsis;
    }

    public void setLibrarySynopsis(String librarySynopsis) {
        this.librarySynopsis = librarySynopsis;
    }

    public String getLibraryEmail() {
        return libraryEmail;
    }

    public void setLibraryEmail(String libraryEmail) {
        this.libraryEmail = libraryEmail;
    }

    public SysBookLibraryInfo() {
    }

    public SysBookLibraryInfo(Long libraryId, String libraryName, Long managerId, String libraryTelPhone,
            String libraryAddress, String libraryEmail, Date libraryFoundingTime, String librarySynopsis) {
        this.libraryId = libraryId;
        this.libraryName = libraryName;
        this.managerId = managerId;
        this.libraryTelPhone = libraryTelPhone;
        this.libraryAddress = libraryAddress;
        this.libraryEmail = libraryEmail;
        this.libraryFoundingTime = libraryFoundingTime;
        this.librarySynopsis = librarySynopsis;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("{\"libraryId\":");
        builder.append(libraryId);
        builder.append(", \"libraryName\":");
        builder.append(libraryName);
        builder.append(", \"managerId\":");
        builder.append(managerId);
        builder.append(", \"libraryTelPhone\":");
        builder.append(libraryTelPhone);
        builder.append(", \"libraryAddress\":");
        builder.append(libraryAddress);
        builder.append(", \"libraryEmail\":");
        builder.append(libraryEmail);
        builder.append(", \"libraryFoundingTime\":");
        builder.append(libraryFoundingTime);
        builder.append(", \"librarySynopsis\":");
        builder.append(librarySynopsis);
        builder.append("}");
        return builder.toString();
    }

   

    
}
